package com.nameless.service.impl;

import com.nameless.dao.CommentMapper;
import com.nameless.entity.CarComment;
import com.nameless.service.CommentService;
import com.nameless.vo.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author ：潘淼淼
 * @date ：Created in 2023/3/2 10:50
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class CommentServiceImpl implements CommentService {
    @Resource
    private CommentMapper carCommentMapper;

    @Override
    public Result insert(CarComment carComment) {
        System.out.println("000000000000000000000========="+carComment);
        carComment.setAddtime(new Date());
        int insert = carCommentMapper.insert(carComment);

        return new Result(200,"添加一条数据成功",insert);
    }
}